<?php

namespace Shared\LocalSyntaxSpecific;

/**
 * 
 * @author Jordan Minchev <j.minchev@object.bg>
 * @copyright (c) 2014, ASPECT.BG Ltd.
 */
class Loader {

    public function init() {
        $eventManager = \Shared\Application::instance()->getEntityManager()->getEventManager();

        //load annotations
        \Doctrine\Common\Annotations\AnnotationRegistry::registerFile(
                __DIR__ . '/Annotations/Loader/AnnotationLoader.php'
        );
        //register even subsriber
        $eventManager->addEventSubscriber(new \Shared\LocalSyntaxSpecific\EventSubscriber);
    }

}
